package cn.zswltech.gruul.api;

import cn.zswltech.gruul.common.dto.*;
import cn.zswltech.gruul.common.result.Response;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author Jim
 * @version 1.0.0
 * @descripition:
 * @date 2024/3/1 0:49
 */
public interface FunctionApi {

    /**
     * 门户权限-菜单下的功能接口列表
     * @param req
     * @return
     */
    @PostMapping("underMenu/functionList")
    Response<List<FunctionInfo>> underMenuFunctionList(@RequestBody UnderMenuFunctionListREQ req);

    /**
     * 门户权限-菜单下功能接口新增
     * @param req
     * @return
     */
    @PostMapping("underMenu/functionAdd")
    Response underMneuFunctionAdd(@RequestBody UnderMenuFunctionAddREQ req);

    /**
     *门户权限-菜单下功能接口欧修改
     * @param req
     * @return
     */
    @PostMapping("underMenu/functionUpdate")
    Response underMenuFunctionUpdate(@RequestBody UnderMenuFunctionUpdateREQ req);

    /**
     * 门户权限-菜单下功能菜单删除
     * @param req
     * @return
     */
    @PostMapping("underMenu/functionDel")
    Response underMenuFunctionDel(@RequestBody UnderMenuFunctionDelREQ req);

}
